<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/default.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{todoTaskList.firstResult}"></f:viewParam>	
	   	<f:viewParam name="processKey" value="#{todoTaskList.processKey}"></f:viewParam>
	   	<f:viewParam name="supplierName" value="#{todoTaskList.supplierName}"></f:viewParam>
	   	<f:viewParam name="projectName" value="#{todoTaskList.projectName}"></f:viewParam>
	   	<f:viewParam name="moduleName" value="取消报名审核"></f:viewParam>
   	</f:metadata>
   
   	<ui:define name="content">
   
		<h:form id="searchForm">
			<div style="height:80px;margin-left:10px;">	
				<p:outputLabel value="项目名称："></p:outputLabel>				
				<p:inputText value="#{todoTaskList.projectName}"></p:inputText>
				#{'    '}
				<p:outputLabel value="中介名称："></p:outputLabel>				
				<p:inputText value="#{todoTaskList.supplierName}"></p:inputText>
				
				#{'    '}
				<br/>	
				<div class="actionButtons" style="margin-top:10px;">
					<p:commandButton value="查询" ajax="false"  action="CancelApplyTaskList.xhtml?faces-redirect=true&amp;includeViewParams=true&amp;firstResult=0" styleClass="blue-int"></p:commandButton>
					#{'    '}
					<p:button value="重置" outcome="CancelApplyTaskList.xhtml?processKey=#{param.processKey}"></p:button>
				</div>				
				<div class="clearbt"></div>
			</div>	
			<p:panel id="searchResult">
				<f:facet name="header">取消报名审核</f:facet>
				<p:dataTable value="#{todoTaskList.resultList}" var="_task">
					<p:column headerText="审批环节">
						<h:outputText value="#{_task.name}" />
					</p:column>
					<p:column headerText="项目名称">
						<h:outputText value="#{_task.processVariables['projectName']}" />
					</p:column>					
					<p:column headerText="被取消报名的中介">
						<h:outputText value="#{_task.processVariables['supplierName']}" />
					</p:column>
					<p:column headerText="操作" width="80">
						<p:button value="审核" outcome="CancelApplyAudit.xhtml">
							<f:param name="tradeId" value="#{_task.processVariables['tradeId']}"></f:param>
							<f:param name="bulletinId" value="#{_task.processVariables['bulletinId']}" ></f:param>
							<f:param name="taskId" value="#{_task.id}"></f:param>
						</p:button>
					</p:column>
				</p:dataTable>
			</p:panel>
			
		</h:form>
      
   	</ui:define>
</ui:composition>
